﻿namespace CardGameCore.Battle
{
    public interface IBattlefield
    {
        Player Player { get; }
        Enemy Enemy { get; }
        void Init(Player player, Enemy enemy, int initialCost);
        int Round { get; }
        int MaxCost { get; }
        void NextRound();
    }

    public class Battlefield : IBattlefield
    {
        public Player Player { get; private set; }
        public Enemy Enemy { get; private set; }
        public int Round { get; private set; }
        public int MaxCost { get; private set; }

        public void Init(Player player, Enemy enemy, int initialCost)
        {
            Player = player;
            Enemy = enemy;
            MaxCost = initialCost;
            Round = 0;
        }
        public void NextRound()
        {
            Round++;
            MaxCost++;
        }
    }
}